package cn.edu.scau.cmi.ema.dao;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Filler;
import org.springframework.dao.DataAccessException;

import java.util.Set;

public interface FillerDAO extends JpaDao<Filler> {

	public Filler findFillerById(Integer id) throws DataAccessException;

	public Filler findFillerById(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Filler> findFillerByName(String name) throws DataAccessException;

	public Set<Filler> findFillerByName(String name, int startResult, int maxRows) throws DataAccessException;

	public Set<Filler> findFillerByNameContaining(String name_1) throws DataAccessException;

	public Set<Filler> findFillerByNameContaining(String name_1, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Filler> findFillerByDescription(String description) throws DataAccessException;

	public Set<Filler> findFillerByDescription(String description, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Filler> findFillerByDescriptionContaining(String description_1) throws DataAccessException;

	public Set<Filler> findFillerByDescriptionContaining(String description_1, int startResult, int maxRows)
			throws DataAccessException;

	public Filler findFillerByPrimaryKey(Integer id) throws DataAccessException;

	public Filler findFillerByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Filler> findFillersByIds(Set<Integer> ids) throws DataAccessException;

	public Set<Filler> findAllFillers() throws DataAccessException;

	public Set<Filler> findAllFillers(int startResult, int maxRows) throws DataAccessException;

	public Set<Filler> findFillersByFillertype(Integer fillertypeId, int start, int max);

	public Set<Filler> findFillerByCompositeProperities(String sql, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Filler> findFillersByDetachedCriteria(CmiPagination page) throws DataAccessException;

	public Filler findFillerByPhysicalPrimaryKey(String name, Integer fillertypeId) throws DataAccessException;

	public Filler findFillerByPhysicalPrimaryKey(String name, Integer fillertypeId, int startResult, int maxRows)
			throws DataAccessException;
}
